package com.shujia.wyh.day08;

/*
    去除字符串两空格
    String trim() //只会去除两边的空格

 */
public class StringDemo8 {
    public static void main(String[] args) {
        String s = "  nihao world  shijie  ";
        System.out.println(s);
        System.out.println(s.trim());
    }
}
